<?php

/**
 * General actions.
 *
 * @package    iEasy
 * @subpackage General
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class generalActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
        $routing = $this->getContext()->getRouting();
        $this->pageUrl = $routing->getCurrentInternalUri();
      //echo utility::getJavascript("alert('".$routing->getCurrentInternalUri()."');");
    //$this->forward('default', 'module');
    $test = "";
  }

  public function executeCindex(sfWebRequest $request)
  {
      $this->catalogId = $request->getParameter("catalogId");
      $catalog = Doctrine_Core::getTable("catalog")->find($this->catalogId);
          $this->response->setTitle("新闻_".$catalog->getDescription()."_".sfConfig::get("app_site_name")) ;
  }
}
